<?php

class Shop extends CI_Controller
{
	public function view($page = 'types_list')
	{
		if ( !file_exists('application/views/shop/'.$page.'.php'))
		{
			// The requested page doesn't exist
			show_404();
		}
		
		$data['title'] = ucfirst($page); // Capitalize the first letter
		
		$this->load->view('templates/header', $data);
		$this->load->view('shop/'.$page, $data);
		$this->load->view('templates/footer', $data);
	}
	
	
}


?>